Skip to content

Force calculation for hybrid gauge rt-tddft#7474

Open
ESROAMER wants to merge 5 commits into
deepmodeling:developfrom
ESROAMER:develop
Open

Force calculation for hybrid gauge rt-tddft#7474
ESROAMER wants to merge 5 commits into
deepmodeling:developfrom
ESROAMER:develop

Conversation

@ESROAMER

Copy link
Copy Markdown
Collaborator

What's changed?

  1. Support force calculation for hybrid gauge(highly experimental; if used, ensure td_dt is small, at least 0.01 fs).
  2. Fix the issue where the electric field force does not reset to zero after tend.
  3. Output the net force vector.

Linked Issue

#6671

Exx_NAO<T> &exx_nao,
ModuleSymmetry::Symmetry* symm)
ModuleSymmetry::Symmetry* symm,
hamilt::Hamilt<T>* p_hamilt)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the p_hamilt seems useless in this function?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This p_hamilt is used in force_rt_overlap.cpp to obtain Hk.

Comment thread source/source_lcao/FORCE_STRESS.cpp Outdated
two_center_bundle.overlap_orb_beta.get());
tmp_nonlocal.cal_force_stress(isforce, isstress, dmR, fvnl_dbeta, svnl_dbeta);

if(PARAM.inp.td_stype == 2)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid using PARAM directly, try to pass input as a parameter

@mohanchen mohanchen added the Features Needed The features are indeed needed, and developers should have sophisticated knowledge label Jun 17, 2026
@mohanchen mohanchen requested a review from AsTonyshment June 17, 2026 00:46
@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Features Needed The features are indeed needed, and developers should have sophisticated knowledge Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants